<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css" />
<title>员工查询</title>
<style type="text/css">
article { padding: 10px; }
.myaddbtn {	margin: 10px 0; margin-bottom: 20px; }
footer { text-align: center; width: 100%;}
</style>
</head>
<body>
<article>
	<div class="pure-g">
		<div class="pure-u-1-1">
			<table class="pure-table pure-table-striped">
				<thead>
					<tr>
						<th>序号</th>
						<th>员工姓名</th>
						<th>性别</th>
						<th>生日</th>
						<th>就职日期</th>
						<th>员工号</th>
						<th>所属部门</th>
						<th>操作</th>
					</tr>
				</thead>

				<tbody>
					<s:iterator value="list" var="e" status="status">
						<tr>
							<td><s:property value="#e.eid" /></td>
							<td><s:property value="#e.ename" /></td>
							<td><s:property value="#e.sex" /></td>
							<td><s:date name="#e.birthday" format="yyyy年MM月dd日" /></td>
							<td><s:date name="#e.joinDate" format="yyyy年MM月dd日" /></td>
							<td><s:property value="enoString" /></td>
							<td><s:property value="#e.department.dnameString" /></td>
							<td><a
								href="employee/Employee_delete.action?eid=<s:property value="eid" />"
								onclick="javascript: return confirm('真的要删除吗？');">1.删除</a>--<a
								href="employee/Employee_edit.action?eid=<s:property value="eid" />">2.编辑</a></td>
						</tr>
					</s:iterator>
				</tbody>
			</table>
		</div>
		<div class="pure-u-1-1">
			<a class="pure-button myaddbtn" href="employee/Employee_add.action">添加一个员工</a>
		</div>
	</div>
</article>
<footer>
	当前第<s:property value="currPage" />页/共<s:property value="totalPage" />页&nbsp;&nbsp;
	一共<s:property value="totalCount" />条数据&nbsp;&nbsp; 每页显示<s:property value="pageSize" />条数据&nbsp;&nbsp;
	<s:if test="currPage!=1">
		<a href="employee/Employee_queryBP.action?currpage=1">首页</a>&nbsp;&nbsp;
		<a href="employee/Employee_queryBP.action?currpage=<s:property value="currPage-1"/>">上一页</a>&nbsp;&nbsp;
	</s:if>
	<s:if test="currPage!=totalPage">
		<a href="employee/Employee_queryBP.action?currpage=<s:property value="currPage+1"/>">下一页</a>&nbsp;&nbsp;
		<a href="employee/Employee_queryBP.action?currpage=<s:property value="totalPage"/>">尾页</a>&nbsp;&nbsp;
</s:if>
</footer>
</body>
</html>